package com.ruoyi.kindergarten.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 家长信息对象 parent
 * 
 * @author ruoyi
 * @date 2025-10-26
 */
public class Parent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 家长 */
    @Excel(name = "家长")
    private Long id;

    /** 学生id */
    @Excel(name = "学生id")
    private Long studentId;

    /** 与学生关系 */
    @Excel(name = "与学生关系")
    private String relation;

    /** 家长姓名 */
    @Excel(name = "家长姓名")
    private String parentName;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }

    public void setRelation(String relation) 
    {
        this.relation = relation;
    }

    public String getRelation() 
    {
        return relation;
    }

    public void setParentName(String parentName) 
    {
        this.parentName = parentName;
    }

    public String getParentName() 
    {
        return parentName;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentId", getStudentId())
            .append("relation", getRelation())
            .append("parentName", getParentName())
            .append("phone", getPhone())
            .append("createTime", getCreateTime())
            .toString();
    }
}
